package com.topsun.posclient;

import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

public class Perspective implements IPerspectiveFactory {

	public void createInitialLayout(IPageLayout layout) {
		String editorArea = layout.getEditorArea();//得到编辑区域
        layout.setEditorAreaVisible(false);//设置是否显示编辑区域
        // layout.setFixed(true);//设置当前布局是否固定
        
		layout.getViewLayout(View.ID).setCloseable(true);
		
//		layout.addStandaloneView(AppConstants.TEACH_UNIT_NAME_VIEW_ID, true,	IPageLayout.LEFT, 0.26f, editorArea);
//		layout.getViewLayout(AppConstants.TEACH_UNIT_NAME_VIEW_ID).setCloseable(false);
//		layout.getViewLayout(AppConstants.TEACH_UNIT_NAME_VIEW_ID).setMoveable(false);
//			// 加入经费概览视图
//		layout.addStandaloneView(AppConstants.PIE_DIAGRAM_VIEW_ID, true,	IPageLayout.BOTTOM, 0.72f, IAppConstants.TEACH_UNIT_NAME_VIEW_ID);
//		layout.getViewLayout(AppConstants.PIE_DIAGRAM_VIEW_ID).setCloseable(false);
//		layout.getViewLayout(AppConstants.PIE_DIAGRAM_VIEW_ID).setMoveable(false);
//		layout.addView(AppConstants.TEACH_UNIT_CLASS_VIEW_ID, IPageLayout.RIGHT,0.74f, editorArea);
//		layout.getViewLayout(AppConstants.TEACH_UNIT_CLASS_VIEW_ID).setCloseable(false);
//		layout.getViewLayout(AppConstants.TEACH_UNIT_CLASS_VIEW_ID).setMoveable(false);
	}

}
